home *** CD-ROM | disk | FTP | other *** search
/ MacTech 1 to 12 / MacTech-vol-1-12.toast / Source / WASTE 1.2 Distribution / WASTE 1.2 / WESharedLibrary.c < prev    next >
Encoding:
C/C++ Source or Header  |  1996-06-18  |  696 b   |  44 lines  |  [TEXT/CWIE]

  1. /*
  2.  *    WESharedLibrary.c
  3.  *
  4.  *    WASTE PROJECT
  5.  *  CFM Shared Library initialization & Termination code
  6.  *
  7.  *  Copyright (c) 1993-1996 Marco Piovanelli
  8.  *    All Rights Reserved
  9.  *
  10.  *  C port by Dan Crevier
  11.  *
  12.  */
  13.  
  14.  
  15. #include "WASTEIntf.h"
  16.  
  17. #if !GENERATINGCFM
  18. #error "This code is for CFM shared libraries only"
  19. #endif
  20.  
  21. //    globals
  22.  
  23. QDGlobals qd;        //    define the Quickdraw globals here!
  24.  
  25. pascal OSErr _WECFMInitialize(const CFragInitBlock *theInitBlock)
  26. {
  27. #pragma unused(theInitBlock)
  28.  
  29.     //    initialize the Quickdraw globals
  30.     InitGraf(&qd.thePort);
  31.     
  32.     //    make the Code Fragment Manager happy
  33.     return noErr;
  34. }
  35.  
  36. pascal void _WECFMTerminate(void)
  37. {
  38. }
  39.  
  40. pascal UInt32 WEVersion(void)
  41. {
  42.     return WASTE_VERSION ;
  43. }
  44.